package com.common.orm.sqlparameters;

import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * @author Dmitry Savchenko
 */
public class ParameterDouble extends SqlParameter {

    private Double value;

    public ParameterDouble(String name, Double value) {
        super(name);
        this.value = value;
    }

    @Override
    public void process(int index, PreparedStatement prepStatement) throws SQLException {
        prepStatement.setDouble(index, value);
    }
}
